var express = require('express');

var router = express.Router();

const { getInsurance, addInsurance, getInsuranceById, modifyInsurance, deleteInsurance } = require("../controllers/insurance")


//查看所有保险产品
router.get("/getInsurance", getInsurance)

//新增保险
router.post("/addInsurance", addInsurance)

//通过ID获取保险信息
router.post("/getInsuranceById", getInsuranceById)

//修改保险产品信息
router.post("/modifyInsurance", modifyInsurance)

//删除保险产品
router.post("/deleteInsurance", deleteInsurance)


module.exports = router;













